//mongoose node 的驱动程序
const mongoose = require("mongoose");
// 初始化model
const schema = new mongoose.Schema({
    userId: { type: 'ObjectId', ref: 'users' }, 
    information: Array,  
    total: String, 
    time: String,
    state:String
});
mongoose.model("order", schema, "order");